<?php $__env->startSection('content'); ?>
    <!-- Deafult Table -->
                <div class="block-area" id="defaultStyle">
                    <h3 class="block-title">用户信息管理</h3>
                    <?php if(session('msg')): ?>
                        <div class="alert alert-success">
                            <?php echo e(session('msg')); ?>

                        </div>
                    <?php endif; ?>
                    <form action='<?php echo e(url("admin/type")); ?>' method='post' name='myform'>
                        <input type='hidden' name='_token' value='<?php echo e(csrf_token()); ?>'>
                        <input type='hidden' name='_method' value='DELETE'>
                    </form>

                    <form action='<?php echo e(url("admin/type")); ?>' method='get'>
                        <div class='media-body'>
                            姓名：<input type='text' class='form-control m-b-5' name='name'>
                        </div>
                        
                        <input type='submit' class='btn' value='搜索'>
                    </form>
                    <table class="table tile">
                        <thead>
                            <tr>
                                <th>No.</th>
                                <th>类别</th>
                                <th>path</th>
                                <th>upid</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                            <tr>
                                <td><?php echo e($v->id); ?></td>
                                <td><?php echo e($v->name); ?></td>
                                <td><?php echo e($v->path); ?></td>
                                <td><?php echo e($v->parint_id); ?></td>
                                <td>
                                    <a href="javascript:doDel(<?php echo e($v->id); ?>)" class='btn'>删除</a>
                                    <a href="<?php echo e(url('admin/type').'/'.$v->id); ?>/edit" class='btn'>修改</a>
                                    <a href="<?php echo e(url('admin/typeSon').'/'.$v->id); ?>" class='btn'>添加子类别</a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                        </tbody>
                    </table>
                    <?php echo e($list->appends($where)->links()); ?>

                    <script type="text/javascript">
                        function doDel(id)
                        {
                            if(confirm('确定要删除吗？')){
                                var form = document.myform;
                                form.action = '/admin/type/'+id;
                                form.submit()
                            }
                        }
                    </script>
                </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('user.base.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>